<?php
/**
 * Created by PhpStorm.
 * User: seven
 * Date: 2018/3/29
 * Time: 上午1:16
 */

class CommonException extends \Exception
{
//    const BR = "<br/>";
//    public function __construct($code, $msg)
//    {
//        parent::__construct($msg, $code);
//        $msg = "----------------------------------" . self::BR;
//        $msg .= __CLASS__ . ": [{$this->code}]: {$this->message}"  .self::BR;
//        error_log($msg);
//    }

//    public function __toString()
//    {
//        return $this->printMessage();
//    }

//    public function printMessage(){
//        $msg = "----------------------------------"  . self::BR;
//        $msg .= __CLASS__ . ": [{$this->code}]: {$this->message}"  . self::BR;
//        $msg .= $this->e->getTraceAsString()  . self::BR;
//        return $msg;
//    }

}